
const tools = {
    /**
     * 将毫秒数转换为字符串
     * @param {*} timeMills 
     */
    timeMillisToString(timeMills){
        let date = new Date(timeMills);
        return date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() +
                " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
    }
}

export default tools;

